package com.yilin.platform.entity.user.auth;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yilin.platform.base_core.commons.base.BaseAuth;
import com.yilin.platform.base_core.commons.annotation.Explain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 驾驶证
 */
@Entity
@Table(name = "auth_driving_license")
@TableName(value = "auth_driving_license")
public class DrivingLicense extends BaseAuth {

    private static final long serialVersionUID = -4493032927866951550L;

    @Column(name = "account_id")
    private String accountId;//账户
    @Column(name = "account_name")
    private String accountName;//账户名称

    @Column(name = "driving_license_img")
    @Explain("驾驶证照片")
    private String drivingLicenseImg;// drivingLicenseImg

    @Column(name = "driving_license_name")
    @Explain("驾驶证姓名")
    private String drivingLicenseName;// 驾驶证姓名
    @Column(name = "driving_license_no")
    @Explain("驾驶证编号")
    private String drivingLicenseNo;// 驾驶证编号
    @Column(name = "driving_license_address")
    @Explain("驾驶证地址")
    private String drivingLicenseAddress;// 驾驶证地址
    @Column(name = "issuing_organizations")
    @Explain("发证机关")
    private String issuingOrganizations;// 发证机关
    @Column(name = "driving_license_type")
    @Explain("车驾类型")
    private String drivingLicenseType;//车驾类型

    @Column(name = "valid_start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("生效开始日期")
    private Date validStartDate; // 生效开始日期
    @Column(name = "valid_end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("有限结束日期")
    private Date validEndDate; // 有限结束日期

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getDrivingLicenseAddress() {
        return drivingLicenseAddress;
    }

    public void setDrivingLicenseAddress(String drivingLicenseAddress) {
        this.drivingLicenseAddress = drivingLicenseAddress;
    }

    public String getDrivingLicenseName() {
        return drivingLicenseName;
    }

    public void setDrivingLicenseName(String drivingLicenseName) {
        this.drivingLicenseName = drivingLicenseName;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getDrivingLicenseNo() {
        return drivingLicenseNo;
    }

    public void setDrivingLicenseNo(String drivingLicenseNo) {
        this.drivingLicenseNo = drivingLicenseNo;
    }

    public String getDrivingLicenseType() {
        return drivingLicenseType;
    }

    public void setDrivingLicenseType(String drivingLicenseType) {
        this.drivingLicenseType = drivingLicenseType;
    }

    public String getIssuingOrganizations() {
        return issuingOrganizations;
    }

    public void setIssuingOrganizations(String issuingOrganizations) {
        this.issuingOrganizations = issuingOrganizations;
    }

    public Date getValidStartDate() {
        return validStartDate;
    }

    public void setValidStartDate(Date validStartDate) {
        this.validStartDate = validStartDate;
    }

    public Date getValidEndDate() {
        return validEndDate;
    }

    public void setValidEndDate(Date validEndDate) {
        this.validEndDate = validEndDate;
    }

    public String getDrivingLicenseImg() {
        return drivingLicenseImg;
    }

    public void setDrivingLicenseImg(String drivingLicenseImg) {
        this.drivingLicenseImg = drivingLicenseImg;
    }
}
